import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Time: 2/25/21 3:47 PM
 * Author: leixun
 * Desc:
 */
public class TestSentenceTag {

    public static void main(String[] args) {

        String srcJson = "<h2 style=\"text-align:center;\"><strong>The Commercialization of Lumber</strong></h2> <p style=\"text-align:center;\"></p> <p>[#paragraph1]In nineteenth-century America, practically everything that was built involved wood. Pine was especially attractive for building purposes. It is [#highlight1]durable[/highlight1] and strong, yet soft enough to be easily worked with even the simplest of hand tools. It also floats nicely on water, which allowed it to be transported to distant markets across the nation. The central and northern reaches of the Great Lakes states—Michigan, Wisconsin, and Minnesota—all contained extensive pine forests as well as many large rivers for floating logs into the Great Lakes, from where they were transported nationwide.<br>&nbsp;</p> <p>[#paragraph2]By 1860, the settlement of the American West along with timber shortages in the East converged with ever-widening impact on the pine forests of the Great Lakes states. Over the next 30 years, lumbering became a full-fledged enterprise in Michigan, Wisconsin, and Minnesota. Newly formed lumbering corporations bought up huge tracts of pineland and set about systematically cutting the trees. Both the colonists and the later industrialists saw timber as a [#highlight3]commodity[/highlight3], but the latter group adopted a far more thorough and calculating approach to removing trees. In this sense, what happened between 1860 and 1890 represented a significant break with the past. No longer were farmers in search of extra income the main source for shingles, firewood, and other wood products. By the 1870s, farmers and city dwellers alike purchased forest products from large manufacturing companies located in the Great Lakes states rather than chopping wood themselves or buying it locally.<br>&nbsp;</p> <p>[#paragraph3]The commercialization of lumbering was in part the product of technological change. The early, thick saw blades tended to waste a large quantity of wood, with perhaps as much as a third of the log left behind on the floor as sawdust or scrap. In the 1870s, however, [#highlight5]the British-invented band saw,[/highlight5] with its thinner blade, became standard issue in the Great Lakes states’ lumber factories. Meanwhile, the rise of steam-powered mills streamlined production by [#highlight6]allowing for[/highlight6] the more efficient, centralized, and continuous cutting of lumber. Steam helped to automate a variety of tasks, from cutting to the carrying away of waste. Mills also employed steam to heat log ponds, preventing them from freezing and making possible year-round lumber production.<br>&nbsp;</p> <p>[#paragraph4]For industrial lumbering to succeed, a way had to be found to neutralize the effects of the seasons on production. Traditionally, cutting took place in the winter, when snow and ice made it easier to drag logs on sleds or sleighs to the banks of streams. Once the streams and lakes thawed, workers rafted the logs to mills, where they were cut into lumber in the summer. [#insert1]&nbsp;If nature did not cooperate—if the winter proved dry and warm, if the spring thaw was delayed—production would suffer. To counter the effects of climate on lumber production, loggers experimented with a variety of techniques for transporting trees out of the woods. [#insert2] In the 1870s, loggers in the Great Lakes states began sprinkling water on sleigh roads, giving them an artificial ice coating to [#highlight8]facilitate[/highlight8] travel. [#insert3] The ice reduced the friction and allowed workers to move larger and heavier loads. [#insert4]<br>&nbsp;</p> <p>[#paragraph5]But all the sprinkling in the world would not save a logger from the threat of a warm winter. Without snow the sleigh roads turned to mud. In the 1870s, a set of snowless winters left lumber companies to ponder ways of liberating themselves from the seasons. Railroads were one possibility. At first, the [#highlight10]remoteness[/highlight10] of the pine forests discouraged common carriers from laying track. But increasing lumber prices in the late 1870s combined with periodic warm, dry winters compelled loggers to turn to iron rails. By 1887, 89 logging railroads crisscrossed Michigan, transforming logging from a winter activity into a year-round one.<br>&nbsp;</p> <p>[#paragraph6]Once the logs arrived at a river, the trip downstream to a mill could be a long and tortuous one. Logjams (buildups of logs that prevent logs from moving downstream) were common—at times stretching for 10 miles—and became even more frequent as pressure on the northern Midwest pinelands increased in the 1860s. To help keep the logs moving efficiently, barriers called booms (essentially a chain of floating logs) were constructed to control the direction of the timber. By the 1870s, lumber companies existed in all the major logging areas of the northern Midwest.</p>";
        String lrcJson = "[{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":1,\"entext\":\"The Commercialization of Lumber\",\"id\":95505,\"cntext\":\"木材的商业化\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":2,\"entext\":\"In nineteenth-century America, practically everything that was built involved wood.\",\"id\":95506,\"cntext\":\"在19世纪的美国，几乎所有建筑材料都含有木材。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":3,\"entext\":\"Pine was especially attractive for building purposes.\",\"id\":95507,\"cntext\":\"松树在建筑方面特别有吸引力。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":4,\"entext\":\"It is durable and strong, yet soft enough to be easily worked with even the simplest of hand tools.\",\"id\":95508,\"cntext\":\"它坚固耐用，但又足够柔软，即使用最简单的手动工具也可以轻松地进行操作。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":5,\"entext\":\"It also floats nicely on water, which allowed it to be transported to distant markets across the nation.\",\"id\":95509,\"cntext\":\"它也可以很好地漂浮在水面上，因此可以将其运输到全国各地遥远的市场。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":6,\"entext\":\"The central and northern reaches of the Great Lakes states—Michigan, Wisconsin, and Minnesota—all contained extensive pine forests as well as many large rivers for floating logs into the Great Lakes, from where they were transported nationwide.\",\"id\":95510,\"cntext\":\"五大湖州的中部和北部—密歇根州，威斯康星州和明尼苏达州—都拥有广阔的松树林以及许多大河，可将原木漂浮到五大湖中，并从那里运往全国。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":7,\"entext\":\"By 1860, the settlement of the American West along with timber shortages in the East converged with ever-widening impact on the pine forests of the Great Lakes states.\",\"id\":95511,\"cntext\":\"到1860年，美国西部的殖民地以及东部地区的木材短缺，对五大湖州松树林的影响日益扩大。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":8,\"entext\":\"Over the next 30 years, lumbering became a full-fledged enterprise in Michigan, Wisconsin, and Minnesota.\",\"id\":95512,\"cntext\":\"在接下来的30年中，伐木业成为密歇根州，威斯康星州和明尼苏达州的一项成熟行业。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":9,\"entext\":\"Newly formed lumbering corporations bought up huge tracts of pineland and set about systematically cutting the trees.\",\"id\":95513,\"cntext\":\"新成立的伐木公司购买了大片的松林，并着手系统地砍伐树木。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":10,\"entext\":\"Both the colonists and the later industrialists saw timber as a commodity, but the latter group adopted a far more thorough and calculating approach to removing trees.\",\"id\":95514,\"cntext\":\"殖民者和后来的工业家都将木材视为商品，但后者则采用了一种更为彻底和精明的方法来砍伐树木。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":11,\"entext\":\"In this sense, what happened between 1860 and 1890 represented a significant break with the past.\",\"id\":95515,\"cntext\":\"从这个意义上讲，1860年至1890年之间发生的事情代表了一种对过去的重大突破。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":12,\"entext\":\"No longer were farmers in search of extra income the main source for shingles, firewood, and other wood products.\",\"id\":95516,\"cntext\":\"木瓦、薪柴和其他木制品不再是寻求额外收入的农民的主要来源。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":13,\"entext\":\"By the 1870s, farmers and city dwellers alike purchased forest products from large manufacturing companies located in the Great Lakes states rather than chopping wood themselves or buying it locally.\",\"id\":95517,\"cntext\":\"到19世纪70年代，农民和城市居民都从五大湖州的大型制造公司购买林产品，而不是自己砍柴或在当地购买木材。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":14,\"entext\":\"The commercialization of lumbering was in part the product of technological change.\",\"id\":95518,\"cntext\":\"伐木业的商业化是技术变革产物的一部分。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":15,\"entext\":\"The early, thick saw blades tended to waste a large quantity of wood, with perhaps as much as a third of the log left behind on the floor as sawdust or scrap.\",\"id\":95519,\"cntext\":\"早期较厚的锯片往往会浪费大量的木材，大约有三分之一的原木以木屑或碎屑的形式留在地板上。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":16,\"entext\":\"In the 1870s, however, the British-invented band saw, with its thinner blade, became standard issue in the Great Lakes states’ lumber factories.\",\"id\":95520,\"cntext\":\"然而，在19世纪70年代，英国发明了带锯，其刀片较薄，成为五大湖区各木材厂的标准配置。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":17,\"entext\":\"Meanwhile, the rise of steam-powered mills streamlined production by allowing for the more efficient, centralized, and continuous cutting of lumber.\",\"id\":95521,\"cntext\":\"同时，蒸汽工厂的兴起允许人们更高效，集中和连续地切割木材，从而实现了流水线生产。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":18,\"entext\":\"Steam helped to automate a variety of tasks, from cutting to the carrying away of waste.\",\"id\":95522,\"cntext\":\"蒸汽帮助人们实现了从切割到废物处理等各种任务的自动化。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":19,\"entext\":\"Mills also employed steam to heat log ponds, preventing them from freezing and making possible year-round lumber production.\",\"id\":95523,\"cntext\":\"工厂还使用蒸汽加热原木池，防止它们结冰，并使全年的木材生产成为可能。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":20,\"entext\":\"For industrial lumbering to succeed, a way had to be found to neutralize the effects of the seasons on production.\",\"id\":95524,\"cntext\":\"为了使工业化伐木成功，必须找到一种方法来抵消季节对生产的影响。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":21,\"entext\":\"Traditionally, cutting took place in the winter, when snow and ice made it easier to drag logs on sleds or sleighs to the banks of streams.\",\"id\":95525,\"cntext\":\"从传统来说，伐木是在冬天进行的，当时的雪和冰使得雪橇上的原木更加容易运到溪流边。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":22,\"entext\":\"Once the streams and lakes thawed, workers rafted the logs to mills, where they were cut into lumber in the summer.\",\"id\":95526,\"cntext\":\"一旦溪流和湖泊融化，工人便将原木漂流至工厂，在夏天将原木砍成木材。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":23,\"entext\":\"If nature did not cooperate—if the winter proved dry and warm, if the spring thaw was delayed—production would suffer.\",\"id\":95527,\"cntext\":\"如果自然不配合—如果冬天干燥温暖，如果春天解冻延迟—生产将受到影响。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":24,\"entext\":\"To counter the effects of climate on lumber production, loggers experimented with a variety of techniques for transporting trees out of the woods.\",\"id\":95528,\"cntext\":\"为了应对气候变化对木材生产的影响，伐木工人尝试了多种将树木运出树林的技术。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":25,\"entext\":\"In the 1870s, loggers in the Great Lakes states began sprinkling water on sleigh roads, giving them an artificial ice coating to facilitate travel.\",\"id\":95529,\"cntext\":\"在19世纪70年代，五大湖州的伐木工人开始在雪橇道路上洒水，为它们铺上人造冰，以方便运输。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":26,\"entext\":\"The ice reduced the friction and allowed workers to move larger and heavier loads.\",\"id\":95530,\"cntext\":\"冰减少了摩擦，使工人可以移动更大，更重的货物。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":27,\"entext\":\"But all the sprinkling in the world would not save a logger from the threat of a warm winter.\",\"id\":95531,\"cntext\":\"但是，世界上所有的洒水行为都不能使伐木工人免受暖冬的威胁。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":28,\"entext\":\"Without snow the sleigh roads turned to mud.\",\"id\":95532,\"cntext\":\"没有积雪，雪橇道路变成了泥路。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":29,\"entext\":\"In the 1870s, a set of snowless winters left lumber companies to ponder ways of liberating themselves from the seasons.\",\"id\":95533,\"cntext\":\"在19世纪70年代，一系列没有雪的冬天使木材公司开始思考从季节中解放自己的方法。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":30,\"entext\":\"Railroads were one possibility.\",\"id\":95534,\"cntext\":\"铁路是一种可行之道。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":31,\"entext\":\"At first, the remoteness of the pine forests discouraged common carriers from laying track.\",\"id\":95535,\"cntext\":\"起初，松树林的偏僻阻碍了普通承运公司铺设道路。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":32,\"entext\":\"But increasing lumber prices in the late 1870s combined with periodic warm, dry winters compelled loggers to turn to iron rails.\",\"id\":95536,\"cntext\":\"但是在19世纪70年代后期，木材价格上涨，加上周期性的温暖干燥的冬季，迫使伐木工人转向铁轨运输。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":33,\"entext\":\"By 1887, 89 logging railroads crisscrossed Michigan, transforming logging from a winter activity into a year-round one.\",\"id\":95537,\"cntext\":\"到1887年，密歇根州有89条伐木铁路纵横交错，将伐木从冬季活动转变为全年活动。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":34,\"entext\":\"Once the logs arrived at a river, the trip downstream to a mill could be a long and tortuous one.\",\"id\":95538,\"cntext\":\"一旦原木到达河流，其顺流到达工厂之旅将会漫长而曲折。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":35,\"entext\":\"Logjams (buildups of logs that prevent logs from moving downstream) were common—at times stretching for 10 miles—and became even more frequent as pressure on the northern Midwest pinelands increased in the 1860s.\",\"id\":95539,\"cntext\":\"原木阻塞（阻止原木向下游移动的原木积聚）很普遍（有时会延伸10英里），并且随着19世纪60年代中西部北部松树地带的伐木压力增加而变得更加频繁。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":36,\"entext\":\"To help keep the logs moving efficiently, barriers called booms (essentially a chain of floating logs) were constructed to control the direction of the timber.\",\"id\":95540,\"cntext\":\"为了保持原木的有效运输，人们建造了称为吊杆（基本上是浮动的原木链）的障碍物，以控制木材的方向。\"},{\"serialNumber\":\"TOEFL--0TF-T54-R-P1\",\"start\":0,\"createUser\":\"richgirl7\",\"end\":0,\"sortNum\":37,\"entext\":\"By the 1870s, lumber companies existed in all the major logging areas of the northern Midwest.\",\"id\":95541,\"cntext\":\"到19世纪70年代，木材公司已经存在于中西部北部的所有主要伐木区。\"}]\n" ;

        ArrayList<LrcBean> mLrcBeans;
        Gson gson =new Gson();
        Type type = new TypeToken<List<LrcBean>>() {
        }.getType();
        mLrcBeans = gson.fromJson(lrcJson, type);
        InsertSentenceTagUtils.insertSentenceTagIntoSrc(srcJson,mLrcBeans);
    }
}
